//调用接口配置文件
import { request } from 'config/request'
// 定义接口
export async function queryAllAddress(params) {
    return request({
        url: 'admin/address/queryAllAddress',
        method: 'GET',
        data: params,
    });
};
//楼盘列表
export async function queryEstateList(params) {
    return request({
        url: 'admin/estate/adminList',
        data: params,
        method: "POST",
        headers: {
            "Content-type": "application/json"
        },
    });
};
//银行列表
export async function queryBankCodeList(params) {
    return request({
        url: 'admin/bankAccount/queryBankCodeList',
        data: params,
        method: "POST",
        headers: {
            "Content-type": "application/json"
        },
    });
};

//提交
export async function sumbit(params) {
    return request({
        url: 'admin/bankAccount/createBankAccount',
        data: params,
        method: "POST",
        headers: {
            "Content-type": "application/json"
        },
    });
};
//更新
export async function update(params) {
    return request({
        url: 'admin/bankAccount/updateBankAccount',
        data: params,
        method: "POST",
        headers: {
            "Content-type": "application/json"
        },
    });
};
//详情
export async function queryDetail(id){
    return request({
        url: `admin/bankAccount/queryDetail/${id}`,
        //data: params,
        method: "GET",
    });
}
//城市与区域级联
export async function regionArea(params) {
    console.log(params)
    return request({
        url: `admin/common/region/area/tree/get `,
        method: 'GET',
        data: params,
        headers:{
            "Content-type":"application/json",
        }
    });
};
//查询城市
export async function getProduct(params) {
    console.log(params)
    return request({
        url: `admin/common/query/product/${params.cityCode}`,
        method: 'GET',
        // data: {},
       
    });
};
